package com.sinaapp.kjWeb.pojo;

import java.io.Serializable;
import java.util.List;

/*
 *auth:徐疆
 *date 2014-1-23 下午12:36:53
 */
public class AjaxResult implements Serializable{
	private boolean isSuccess=true;
	private String resultContext;
	private List<CommonDict> result;
	public boolean isSuccess() {
		return isSuccess;
	}
	public void setSuccess(boolean isSuccess) {
		this.isSuccess = isSuccess;
	}
	public List<CommonDict> getResult() {
		return result;
	}
	public void setResult(List<CommonDict> result) {
		this.result = result;
	}
	public String getResultContext() {
		return resultContext;
	}
	public void setResultContext(String resultContext) {
		this.resultContext = resultContext;
	}
	public AjaxResult setErrorContext(String t){
		isSuccess=false;
		resultContext=t;
		return this;
	}
	@Override
	public String toString() {
		return "AjaxResult [isSuccess=" + isSuccess + ", resultContext="
				+ resultContext + ", result=" + result + "]";
	}
	
}

